package com.youlai.boot.system.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.*;

import java.io.Serial;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.youlai.boot.common.base.BaseEntity;

/**
 * 商品管理实体对象
 *
 * @author zhangyurun
 * @since 2025-03-20 14:24
 */
@Getter
@Setter
@TableName("sp_product")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Product extends BaseEntity {
    @Serial
    private static final long serialVersionUID = -7238729322615543455L;
    /**
     * 图片
     */
    private String pic;
    /**
     * 商品名称
     */
    private String productName;
    /**
     * 需要积分
     */
    private BigDecimal points;
    /**
     * 库存
     */
    private Integer stock;
}
